package blog.farb.top.springbootforredis.utils;

import org.springframework.web.client.RestTemplate;

public class QuickBuyClient {
    private final RestTemplate restTemplate = new RestTemplate();

    public void quickBuy(String item, String buyer) {
        String res = restTemplate.getForObject("http://localhost:8080/quickBuy/{item}/{buyer}", String.class, item, buyer);
        System.out.println("秒杀结果：" + res);
    }
}
